#include "form.h"
#include "ui_form.h"

#include <QDebug>

extern char result;
extern char rStatus;

Form::Form(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Form)
{
    ui->setupUi(this);
//    MainWindow *myMain = new MainWindow;
    qDebug()<<result;
    if (rStatus == 't'){
        if (result=='x')
        ui->label_2->setText("识别为x");
        if (result=='o')
        ui->label_2->setText("识别为o");
        if (result=='#')
        ui->label_2->setText("无法识别");
    }else{
        ui->label_2->setText("请先对图像进行处理");
    }



}

Form::~Form()
{
    delete ui;
}

void Form::on_pushButton_clicked()
{
    this->hide();
}
